//
//  JGWinKeyboard.h
//  JGInputDriver
//
//  Created by jagger.tu on 2025/3/20.
//
#if TARGET_OS_IOS

#import <Foundation/Foundation.h>
#import <JGInputDriver/JGWinKeyboardButton.h>


NS_ASSUME_NONNULL_BEGIN

//键盘类型
typedef NS_ENUM(NSInteger ,JGWinKeyboardType) {
    /// 英文键盘布局
    JGWinKeyboardTypeEnglishBaseLayout,
    /// 中文键盘布局
    JGWinKeyboardTypeChineseBaseLayout,
};

/// windows虚拟键盘
@interface JGWinKeyboard : NSObject

///记录当前修饰键状态
@property(nonatomic, assign) JGKeyboardModifierButton modifier;
/// windows 键盘类型
@property(nonatomic, assign) JGWinKeyboardType type;
/// 键盘按键
@property(nonatomic, strong) NSMutableArray<JGWinKeyboardButton *> *buttons;
/// 更新键盘布局
- (void)updateButtonsFrameInRect:(CGRect)rect rowSpace:(CGFloat)rowSpacing colSpacing:(CGFloat)colSpacing;
/// 更新显示名称
- (void)updateDisplayName;
/// 切换键盘风格
- (void)switchKeyboardStyle;

@end

NS_ASSUME_NONNULL_END

#endif 
